<!DOCTYPE html>
<html>
<head>
    <title>ClassDiaryTable</title>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="../../css/bootstrap.min.css">
    <link rel="stylesheet" href="../../css/font-awesome.min.css">
    <link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
    <link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
    <link rel="stylesheet" href="../../css/bootstrap-table.min.css">
    <link rel="stylesheet" href="../../css/main.css">
    <link rel="stylesheet" href="../../plugins/treegrid/jquery.treegrid.css">

    <script src="../../libs/jquery.min.js"></script>
    <script src="../../plugins/layer/layer.js"></script>
    <script src="../../libs/bootstrap.min.js"></script>
    <script src="../../libs/vue.min.js"></script>
    <script src="../../libs/validator.min.js"></script>
    <script src="../../plugins/jqgrid/grid.locale-cn.js"></script>
    <script src="../../plugins/jqgrid/jquery.jqGrid.min.js"></script>
    <script src="../../plugins/ztree/jquery.ztree.all.min.js"></script>
    <script src="../../js/common.js"></script>
    <script src="../../libs/jquery.validate.js"></script>
    <script src="../../libs/validate-methods.js"></script>
    <script src="../../libs/messages_zh.js"></script>
    <script src="../../libs/My97DatePicker/4.8/WdatePicker.js"></script>
</head>
<body>
<br>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="row">
            <div class="form-group col-sm-2 set-paddingLeft">
                <input type="text" class="form-control" v-model="q.key" @keyup.enter="query" placeholder="教师名字/课程名称/班级名称">
            </div>
            <div class="form-group col-sm-2">
                <select  class="form-control" id="College">
                </select>
            </div>
        </div>
        <div class="row">
            <div class="form-group col-sm-2 set-paddingLeft">
                <input type="text" class="form-control" onfocus="WdatePicker()" id="startDate" name="startDate" placeholder="开始时间"/>
            </div>
            <div class="form-group col-sm-2">
                <input type="text" class="form-control" onfocus="WdatePicker()" id="endDate" name="endDate"  placeholder="结束时间"/>
            </div>
            <div class="btn-container">
                <span  class="normal-btn normal-color" onclick="setDate('1')">今日</span>
                <span  class="normal-btn normal-color" onclick="setDate('2')">本周</span>
                <span  class="normal-btn normal-color" onclick="setDate('3')">本月</span>
            </div>
            </div>
        <div style="margin-bottom: 15px">
            <a class="normal-btn search-color" @click="query">查询</a>
            <a class="normal-btn normal-color" id="exportExcel">导出</a>
        </div>
        <table id="jqGrid"></table >
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
            <div class="form-group">
                <div class="col-sm-2 control-label">考评时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ClassDiary.diaryPostTime" placeholder="考评时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">教师姓名</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ClassDiary.courseTeacherName" placeholder="教师姓名" @focus="changeTime()"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">课程名称</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ClassDiary.courseName" placeholder="课程名称" @focus="changeTime()"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">到达时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ClassDiary.arriveTime" placeholder="到达时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">离开时间</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ClassDiary.leaveTime" placeholder="离开时间"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label">教授时长</div>
                <div class="col-sm-10">
                    <input type="text" class="form-control" v-model="ClassDiary.teachLength" placeholder="教授时长"/>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
            </div>
        </form>
    </div>
</div>

<script src="../../js/modules/jxgk/class_diary.js"></script>
</body>
</html>